A. paint() method
B. main() method
C. run() method
D. drawString() method
Advertisement
Related Mcqs:
- A method within a class is only accessible by classes that are defined within the same package as the class of the method. Which one of the following is used to enforce such restriction ?
- A. Declare the method with the keyword public. B. Declare the method with the keyword private. C. Do not declare the method with any accessibility modifiers. D. Declare the method with the keyword public and private....
- Executable applet is_________________?
- A. .class file B. .java file C. .java html D. .applet file...
- Program which executes applet is known as________________?
- A. JVM B. virtual machine C. applet engine D. None of above...
- Suppose a class has public visibility. In this class we define a protected method. Which of the following statements is correct ?
- A. From within protected methods you do not have access to public methods. B. This method is only accessible from inside the class itself and from inside all subclasses. C. In a class, you cannot declare methods with a lower visibility than the visibility of the class in which it is defined. D. This method...
- If method have same name as class name and method don’t have any return type then it is known as______________?
- A. Constructor B. Destructors C. Variable D. Object...
- What is the output for the below code ? public class Test{public static void main(String[] args){int i = 010; int j = 07;System.out.println(i); System.out.println(j); } } ?
- A. 7 8 B. 8 7 C. 9 8 D. None...
- Name the keyword that makes a variable belong to a class, rather than being defined for each instance of the class?
- A. abstract B. static C. volatile D. final...
- Which statements are most accurate regarding the following classes? class A{private int i; protected int j; } class B extends A{ private int k; protected int m; } ?
- A. An object of B contains data fields j, k, m B. An object of B contains data fields k, m C. An object of B contains data fields j, m D. An object of B contains data fields i, j, k, m...
- After the compilation of the java source code, which file is created by the JVM ?
- A. .class B. .doc C. .java D. .cdr...
- The following fraction of code double STATIC = 2.5 ; System.out.println( STATIC ); ?
- A. Prints 2.5 B. Raises an exception C. Raises an error as STATIC is used as a variable which is a keyword D. None of these...
Advertisement